using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using Random = System.Random;

namespace MydisDatas
{
    enum DiseasEnum {
        //伤寒咽痛
        SangHang ,
        //肺热喉痛有痰热者
        FeiReHouTeng,
        // 病毒性脑炎
        BingDuXing
    }
    //数据结构体
    public class DisaData
    {
        //结构体数组
        public  struct Datas
        {
            public Datas(int nameid,string specif,Sprite Iamge,List<int> patientsNeed,int maxturn,string InquiryDatas)
            {
                this.NameID=nameid;
                this.Specif=specif;
                this.Image = Iamge;
                this.patientsNeed = patientsNeed;
                this.maxturn = maxturn;
                this.InquiryDatas = InquiryDatas;
            }
            public int NameID;
            public string Specif;
            public Sprite Image;
            public int maxturn;
            public List<int> patientsNeed;
            public string InquiryDatas;

        }
        public static Sprite spr = Resources.Load<Sprite>("UI/CardSpriteRes/PatientsPic/patient1");
        //病例数组
        public static  Datas[] MyDisaDatas = new Datas[]
        {
            new Datas((int)DiseasEnum.SangHang,"伤寒咽痛：需要甘草",spr,new List<int>(){(int)HerbEnum.GanCao},1, "咳咳咳，我头疼发热，有时喘不过气，夜里也会难受"),
            new Datas((int)DiseasEnum.FeiReHouTeng,"肺热喉痛:：甘草和桔梗",spr,new List<int>(){(int)HerbEnum.GanCao,(int)HerbEnum.JieGeng},2,"咳咳咳，我咳嗽，鼻子堵，喉咙疼，有时候吞食困难"),
            new Datas((int)DiseasEnum.BingDuXing,"病毒性脑炎：需要甘草和苻芩",spr,new List<int>(){(int)HerbEnum.GanCao,(int)HerbEnum.Fuling},2,"咳咳咳，我头疼，经常感到恶心，有时候还想吐"),
        };
        //随机病例ID
        public static Datas RandomDiaseaID()
        {
            Random r = new Random();
            int rnumber = r.Next(0, 3);
            return MyDisaDatas[rnumber];
        }
    }
}

